/*
 * Grid.h
 *
 *  Created on: 2011-11-18
 *      Author: liangx
 */
#ifndef GRID_H_
#define GRID_H_
#include <QtGui/QWidget>
#include <QtGui/QPushButton>
class ai;
class Grid: public QPushButton{
	Q_OBJECT
	public:
		int x;
		int y;
		void setWidget(ai* aiClass);
		Grid(QWidget *parent=0);
	public slots:
		void render();
		void setValue(int);
		void onClicked();
	private:
		/**1 is O, -1 is X, 0 is nothing**/
		int value;
		/** to call the aiclass**/
		ai* mainClass;
};

#endif /* GRID_H_ */
